#include "FMyStyle.h"

#define IMAGE_BRUSH( RelativePath, ... ) FSlateImageBrush(Style->RootToContentDir(RelativePath, TEXT(".png")), __VA_ARGS__)
#define BOX_BRUSH( RelativePath, ... ) FSlateBoxBrush(Style->RootToContentDir(RelativePath, TEXT(".png")), __VA_ARGS__)
#define BORDER_BRUSH( RelativePath, ... ) FSlateBorderBrush(Style->RootToContentDir(RelativePath, TEXT(".png")), __VA_ARGS__)
#define DEFAULT_FONT(...) FCoreStyle::GetDefaultFontStyle(__VA_ARGS__)

TSharedPtr<ISlateStyle> FMyStyle::Instance = nullptr;

TSharedRef<ISlateStyle> FMyStyle::Create(){
	TSharedPtr<FSlateStyleSet> Style = MakeShareable(new FSlateStyleSet("MainStyle"));
	Style->SetContentRoot(FPaths::EngineDir() / "Content" / "Slate" / "Icons");
	Style->Set("TrashCan", new IMAGE_BRUSH("TrashCan", FVector2D(64, 64)));
	return Style.ToSharedRef();
}
